package com.zero.java.base.stream;

import java.util.stream.Stream;


public class StreamReduceAPI {

    public static void main(String[] args) {

        Integer stream = Stream.of(1, 2, 3, 4).reduce(100, (sum, item) -> sum + item);

        System.out.println(stream);
    }
}
